<?php

include 'functions.php';
$db=db_connect();
$bid=$_GET['buch_id'];

if(isset($_POST['form'])){
	$titel=$_POST['titel'];
	$isbn=$_POST['isbn'];	
	$bestand=$_POST['bestand'];	
	$fach=$_POST['fach'];	
	$klassenstufe=$_POST['klassenstufe'];	
	$release=$_POST['release'];	
	
	$update="UPDATE  `rapidbook`.`buch` SET  `isbn` =  '".$isbn."',
`titel` =  '".$titel."',
`fach` =  '".$fach."',
`bestand` =  '".$bestand."',
`klassenstufe` =  '".$klassenstufe."',
`release` =  '".$release."' WHERE  `buch`.`buch_id` =".$bid."	;";
	mysql_query($update,$db);
}

$query = "SELECT * FROM  `buch` WHERE  `buch_id` =".$bid;



$result=mysql_query($query,$db);

$row=mysql_fetch_assoc($result);



include 'buchdetails_tmp.php';
	
mysql_close($db);

?>